# coding=utf-8
'''
Created on 2013-12-30

@author: sunxiang
'''
from mongoengine import *

class Comment(Document): 
    uuid = UUIDField()
    mid = LongField()
    user = UUIDField()
    content = StringField()
    sendtime = ComplexDateTimeField()
    tweet = UUIDField()

class Tweet(Document):
    uuid = UUIDField()
    mid = LongField()
    user = UUIDField()
    content = StringField()
    sendtime = ComplexDateTimeField()
    repostcount = IntField()
    repostuser = ListField(StringField())
    isrepost = BooleanField()
    commentcount = IntField()
    commentuser = ListField(StringField())
#     comment = EmbeddedDocumentField(Comment)
    label = ListField(StringField())
    plus = IntField()
    plususer = ListField(StringField())
    oppose = IntField()
    opposeuser = ListField(StringField())
    visiable = BooleanField()
    type = StringField()
    public = BooleanField()
    circles = ListField(StringField())